import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        String s="hello";
        char[] ch=s.toCharArray();
                //s.toCharArray();//把字符串转变成数组
        for (char c: ch) {
            System.out.println(c);
        }
        char[] s1={'a','b','c','d'};
        //String s2=new String(s1);//把数组转变成字符串
        String s2=new String(s1);
        System.out.println(s2);


    }
    public static void main5(String[] args) {
        int[] arr={1,22,3,44,4};
        String s=String.valueOf(arr);
        System.out.println(s);
    }
    public static void main6(String[] args) {
        String s1=String.valueOf(123);//把整数123转化成字符串s1
        System.out.println(s1);
        int ret=Integer.valueOf("123");//把字符串"123"转化成整数123
        System.out.println(ret+10);


    }
    public static void main4(String[] args) {
        int[] arr={1,22,3,44,4};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
    public static void main2(String[] args) {
        Random random=new Random();
        int n=random.nextInt(100);
        System.out.println(n);
    }
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextInt()){
            int n=scanner.nextInt() ;
            System.out.println(n);

        }
    }
}
